home *** CD-ROM | disk | FTP | other *** search
/ Programmer Power Tools / Programmer Power Tools.iso / progjrn / pj_7_6.arc / WINDEV.ARC / WNTERM.H < prev    next >
C/C++ Source or Header  |  1989-07-30  |  3KB  |  101 lines

  1. /* WNTERM header file
  2.  *
  3.  * Written by
  4.  * William S. Hall
  5.  * 3665 Benton Street, #66
  6.  * Santa Clara, CA 95051
  7. */
  8.  
  9. #ifndef EXTERN
  10. #define EXTERN extern
  11. #endif
  12.  
  13. // declarations for shared functions
  14. /* from wnterm.c */
  15. LONG FAR PASCAL MainWndProc(HWND,unsigned,WORD,LONG);
  16. LONG FAR PASCAL MainWndSubProc(HWND,unsigned,WORD,LONG);
  17.  
  18. /* from wntint.c */
  19. BOOL FAR InitProgram(HANDLE,HANDLE,LPSTR,int);
  20. void FAR WndCreate(HWND hWnd, LPCREATESTRUCT pCS);
  21.  
  22. /* from wntfns.c */
  23. void NEAR ProcessComm(void);
  24. void NEAR WndCommand(HWND, WORD, LONG);
  25. void NEAR MainWndPaint(HWND, LPPAINTSTRUCT);
  26.  
  27. /* from wntmsc.c */
  28. void ShowMessage(HWND, int);
  29. BOOL FAR PASCAL AboutBoxProc(HWND,unsigned,WORD,LONG);
  30. BOOL FAR PASCAL SetCommParams(HWND,unsigned,WORD,LONG);
  31.  
  32. /* virtual key value of scroll key */
  33. #define VK_SCROLL 0x91
  34.  
  35. /* dialog box manifests */
  36. #define DT_ABOUT        1
  37. #define DT_COMM            2
  38.  
  39. /* string manifests */
  40. #define IDS_APPNAME        100
  41. #define IDS_ABOUT        101
  42. #define IDS_WINTITLE        102
  43. #define IDS_ICONSTRING        103
  44. #define IDS_OFFLINE        105
  45. #define IDS_ONLINE        106
  46. #define IDS_FIRSTCOM        107
  47. #define IDS_NEXTCOM        108
  48. #define IDS_PORTSECTION        109
  49. #define IDS_CANNOTOPENFIRSTPORT    111
  50. #define IDS_CANNOTOPENANYPORT    112
  51. #define IDS_COMMSETERROR    113
  52. #define IDS_SMALLFONT        114
  53. #define IDS_FONTFACE        115
  54. #define IDS_CANNOTOPENPORT    116
  55.  
  56. /* dialog box controls */
  57. #define IDD_BAUDRATE    100
  58. #define IDD_SEVENBITS    101
  59. #define IDD_EIGHTBITS    102
  60. #define IDD_COM1    103
  61. #define IDD_COM2    104
  62. #define IDD_NOPARITY    105
  63. #define IDD_ODDPARITY    106
  64. #define IDD_EVENPARITY    107
  65. #define IDD_MARKPARITY    108
  66. #define IDD_SPACEPARITY 109
  67.  
  68. /* menu manifests */
  69. #define IDM_ABOUT        200
  70. #define IDM_ONLINE        201
  71. #define IDM_OFFLINE        202
  72. #define IDM_COMM        203
  73. #define IDM_CLEAR        204
  74. #define IDM_LOCAL        205
  75.  
  76. /* comm port input and output queue sizes */
  77. #define INQUESIZE    256
  78. #define OUTQUESIZE    128
  79. #define BUFSIZE INQUESIZE
  80.  
  81. /* variables for the windows */
  82. EXTERN struct TTYWND MWnd;    /* private data for window */
  83.  
  84. /* strings */
  85. EXTERN char szAppName[10];    /* class name of main window */
  86. EXTERN char szIconTitle[5];    /* icon string */
  87. EXTERN char szOffLine[10];    /* menu strings */
  88. EXTERN char szOnLine[10];
  89.  
  90. /* comm port variables */
  91. EXTERN int cid;            /* comm port id */
  92. EXTERN DCB CommData;        /* comm data structure */
  93.  
  94. /* misc variables */
  95. EXTERN HANDLE hInst;        /* instance handle */
  96. EXTERN FARPROC fpMainWndProc;    /* subclass window procedure pointer */
  97. EXTERN int LineState;        /* on/off line state flag */
  98. EXTERN BOOL ScrollLock;        /* Scroll Lock key state */
  99. EXTERN BYTE Buffer[BUFSIZE + 1];  /* communications buffer */
  100. EXTERN int Buflen;        /* length of buffer */
  101.